<?php
include("../config/connect.php");
include("../public/common.php");

//$email = CheckUrlParamNoDie("email_id");
$opt = CheckUrlParamNoDie( "opt" );
$msg = GetPostParamStr( "msg_id" );

if ($opt == "submit")
{
	$sql = "insert into tmp_motherday (msg) values ('$msg')";
	mysql_query( $sql );
}

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>购物兔母亲节祝福</title>
<style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	font-size:12px;
	color:#FFFFFF;
}
textarea{ 
overflow:auto; 
}
</style>
<script language="javascript">
function OnSubmit()
{
	document.getElementById("form1").submit();
}
</script>
</head>

<body style="margin-top:0; margin-left:0; background-color:transparent;">
<form id="form1" action="liuyan.php?opt=submit" method="post">
<table>
    <tr><td style="line-height:1.5;"><marquee height="158" direction="up" scrolldelay="50" scrollamount="1" >
    
<?PHP 
$sql = "select * from tmp_motherday order by id desc limit 16";
$result = mysql_query( $sql );
while( $result && $row = mysql_fetch_assoc( $result ))
{
	echo $row["time"]."&nbsp;&nbsp;".$row["msg"]."<br /><br />";
}
?>

</marquee></td></tr>
	<tr><td><hr style="color:#FF99FF" /></td></tr>
    <tr>
      <td><textarea name="msg_id" cols="26" rows="5" id="msg_id" style="color:#CCCCCC; border-style:solid; border-width:1px; border-color:#FF66FF; background:none;" onclick="javascript:select();">请写下祝福母亲的话语~</textarea></td>
    </tr>
    <tr><td align="center"><img src="images/submit.png" style="cursor:pointer;" onclick="javascript:OnSubmit();" /></td></tr>
    <tr><td>&nbsp;</td></tr>
</table>
</form>

</body>
</html>
